package Unused;

import GameObjects.Player;

import com.jme.scene.Node;


public class BrakeAction {
	
	private Player ds;
	BrakeAction(Node n)
	{
		ds = (Player)n;
	
	}
	
    public void performAction(InputActionEvent evt) {
        vehicle.brake(evt.getTime());
        Vector3f loc = vehicle.getLocalTranslation();
        loc.addLocal(vehicle.getLocalRotation().getRotationColumn(2, tempVa)
                .multLocal(vehicle.getVelocity() * evt.getTime()));
        vehicle.setLocalTranslation(loc);
    }
}
